package ru.btabank.dom.xpath.parsers;

public abstract class Token {
    protected String value;

    protected int type;

    protected int position;

    public int getType() {
        return type;
    }

    public int getPosition() {
        return position;
    }

    public String getValue() {
        return value;
    }

    public String toString() {
        return getValue();
    }

    public static final int END_OF_EXPRESSION_TOKEN = -1;

    public static final int STAR_TOKEN = 1;

    public static final int SLASH_TOKEN = 2;

    public static final int DOT_TOKEN = 3;

    public static final int DOUBLE_DOT_TOKEN = 4;

    public static final int AT_TOKEN = 5;

    public static final int COLON_TOKEN = 6;

    public static final int LEFT_BRACKET_TOKEN = 7;

    public static final int RIGHT_BRACKET_TOKEN = 8;

    public static final int LEFT_PARENTHESIS_TOKEN = 9;

    public static final int RIGHT_PARENTHESIS_TOKEN = 10;

    public static final int NUMBER_LITERAL_TOKEN = 11;

    public static final int STRING_LITERAL_TOKEN = 12;

    public static final int IDENTIFIER_TOKEN = 13;

    public static final int EQUALS_TOKEN = 14;

    public static final int WHITESPACE_TOKEN = 15;
}
